<%@ page pageEncoding="utf-8" isELIgnored="false" %>
<!DOCTYPE html>
<html>
<head lang="en">
    <meta charset="UTF-8">
    <title>校园超市管理系统</title>
    <link rel="stylesheet" href="${pageContext.request.contextPath}/jsp/css/public.css"/>
    <link rel="stylesheet" href="${pageContext.request.contextPath}/jsp/css/style.css"/>
    <link rel="stylesheet" type="text/css"
          href="${pageContext.request.contextPath}/js/easyui/themes/default/easyui.css">
    <link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/js/easyui/themes/icon.css">
    <link rel="stylesheet" href="${pageContext.request.contextPath}/jsp/js/bootstrap/css/bootstrap.min.css"/>
    <script type="text/javascript" src="${pageContext.request.contextPath}/jsp/js/jQuery1.11.1.js"></script>
    <script type="text/javascript" src="${pageContext.request.contextPath}/js/easyui/jquery-1.7.2.min.js"></script>
    <script type="text/javascript" src="${pageContext.request.contextPath}/js/easyui/jquery.easyui.min.js"></script>
    <%--  <script type="text/javascript" src="${pageContext.request.contextPath}/js/jquery.pagination.js"></script>--%>
    <script type="text/javascript"
            src="${pageContext.request.contextPath}/js/easyui/locale/easyui-lang-zh_CN.js"></script>
    <script type="text/javascript">
      /*  var  isLogin;
        $(function () {
            isLogin=function  userIsLogin() {
                $.ajax({
                    url: "${pageContext.request.contextPath}/sec/isLogin",
                    type: "post",
                    data: {"username":$("#user").val(),"password":$("#mima").val()},
                    success: function (data) {
                        alert(data);
                        if (data.data == 1) {
                                location.href="${pageContext.request.contextPath}/jsp/welcome.jsp";
                        } else {
                            $.messager.alert("温馨提示", "登录失败,用户名或密码错误", "error");
                            return false;
                        }
                    }
                });
            }
        })*/
    </script>
</head>
<body class="login_bg">
    <section class="loginBox">
        <header class="loginHeader">
            <h1>校园超市管理系统</h1>
        </header>
        <section class="loginCont">
            <form id="myform" action="${pageContext.request.contextPath}/sec/isLogin" method="post" class="loginForm">
                <div class="inputbox">
                    <label for="user">工号：</label>
                    <input id="user" type="text" name="username" placeholder="请输入工号" required/>
                </div>
                <div class="inputbox">
                    <label for="mima">密码：</label>
                    <input id="mima" type="password" name="password" placeholder="请输入密码" required/>
                </div>
                <div class="subBtn">
                    <input type="submit"  value="登录" />
                    <input type="reset" value="重置"/>
                </div>

            </form>
        </section>
    </section>

</body>
</html>